/*
 Navicat Premium Data Transfer

 Source Server         : LocalHost
 Source Server Type    : SQL Server
 Source Server Version : 15002000
 Source Host           : LocalHost:1433
 Source Catalog        : wiUniGUI
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 15002000
 File Encoding         : 65001

 Date: 25/03/2021 21:26:02
*/


-- ----------------------------
-- Table structure for tblLoginInfo
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[tblLoginInfo]') AND type IN ('U'))
	DROP TABLE [dbo].[tblLoginInfo]
GO

CREATE TABLE [dbo].[tblLoginInfo] (
  [fldLogID] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [fldUserCode] varchar(30) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [fldComputerName] varchar(128) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [fldComputerIP] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [fldComputerUserName] varchar(128) COLLATE Chinese_PRC_CI_AS DEFAULT '' NOT NULL,
  [fldComputerDomain] varchar(128) COLLATE Chinese_PRC_CI_AS DEFAULT '' NOT NULL,
  [fldLoginTime] datetime DEFAULT getdate() NOT NULL,
  [fldLogoutTime] datetime DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[tblLoginInfo] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of tblLoginInfo
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tblLoginInfo
-- ----------------------------
ALTER TABLE [dbo].[tblLoginInfo] ADD CONSTRAINT [PK_tblLoginInfo] PRIMARY KEY CLUSTERED ([fldLogID])
WITH (PAD_INDEX = OFF, FILLFACTOR = 90, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

